package com.lgCore.consumer.service;/**
 * Created by by on 2020/11/7 14:13
 */

import com.lgCore.factory.RpcServiceZkFactory;
import org.apache.curator.framework.CuratorFramework;

/**
 *@program: sxreader_rpc
 *@author: ligang
 *@create: 2020-11-07 14:13
 */
public interface IZookServiceClient {

    /**
     * 初始化配置
     * @param zkRootPath
     * @param client
     */
    void initConfig(String zkRootPath, CuratorFramework client);
    /**
     * 初始化server zk信息
     * @return
     */
    void initServer() throws Exception;


    /**
     * 监控zk节点变化
     * @return
     */
    void monitorZkNode() throws Exception;

}
